package com.dk.service;

import com.dk.pojo.CodePart;
import com.dk.result.PageResult;
import com.dk.result.Result;

import java.util.List;

public interface CodePartService {
    PageResult<CodePart> getCodePartInfo(Integer pageNum, Integer pageSize, String partCode, String partName);

    Result addCodePart(CodePart codePart, String token);

    Result updateCodePart(CodePart codePart, String token);

    void deleteCodePart(Long partId);

    List<CodePart> selectPartByRuleId(Long ruleId);

    void updateCodePartAPI(CodePart codePart);
}